/*
 * Copyright (c) 2022  by Junzhao
 * THIS FILE IS PART OF JAVASE Song Huongkang PROJECT
 * All Rights Reserved.
 */

import java.util.Scanner;

class jinzita {
    public static void main(String []args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要打印的行数：");
        int n = sc.nextInt();

        int i, j, k;
        for (i = 1; i <= n; i++)//层数
        {
            for (j = 1; j <= n - i; j++)//每行空格数
            {
                System.out.print(" ");
            }
            for (k = 1; k <= 2 * i - 1; k++)//每行星号数
            {
                System.out.print("+");
            }
            System.out.print("\n");//
        }
    }
}